<?php
class Segment extends CI_Model {
    public function __construct(){
        parent::__construct();
    }
    public function get_segment($num){
		$str='';
		for($i=3;$i<=$num;$i++){
			$str .= $this->uri->segment($i).'/';
		}
		$str =trim($str,'/');
		return $str;
    }
}